<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
  <th:block th:fragment="themeSetting">
    <script th:inline="javascript" id="theme-config-getter">
      const ThemeConfig = {
        blog_url: /*[[${site.url}]]*/ '',
        blog_title: /*[[${site.title}]]*/ '',
        BASE_RES_URL: /*[[${site.url}]]*/ '',
        version: /*[[${theme.spec.version}]]*/ '1.0.0',

        // 主题相关
        theme_mode: /*[[${theme.config.theme.theme_mode}]]*/ 'user',
        light_time_scope: /*[[${theme.config.theme.light_time_scope}]]*/ '5:00~19:00',
        cursor_effect: /*[[${theme.config.theme.cursor_effect}]]*/ 'off',
        backdrop: /*[[${theme.config.theme.backdrop}]]*/ 'off',
        enable_loading_bar: /*[[${theme.config.theme.enable_loading_bar}]]*/ true,
        enable_back2top: /*[[${theme.config.theme.enable_back2top}]]*/ true,
        enable_back2top_smooth: /*[[${theme.config.theme.enable_back2top_smooth}]]*/ true,
        enable_offscreen_tip: /*[[${theme.config.theme.enable_offscreen_tip}]]*/ false,
        offscreen_title_leave: /*[[${theme.config.theme.offscreen_title_leave}]]*/ '',
        offscreen_title_back: /*[[${theme.config.theme.offscreen_title_back}]]*/ '',

        // 导航栏
        enable_fixed_header: /*[[${theme.config.navbar.enable_fixed_header}]]*/ true,

        // 顶部大图
        enable_big_banner: /*[[${theme.config.beauty.enable_big_banner}]]*/ false,

        // 轮播图
        enable_banner: /*[[${theme.config.carousel.enable_banner}]]*/ false,
        banner_direction: /*[[${theme.config.carousel.banner_direction}]]*/ 'horizontal',
        banner_effect: /*[[${theme.config.carousel.banner_effect}]]*/ 'slide',
        banner_speed: /*[[${theme.config.carousel.banner_speed}]]*/ 500,
        banner_space_between: /*[[${theme.config.carousel.banner_space_between}]]*/ 0,
        enable_banner_loop: /*[[${theme.config.carousel.enable_banner_loop}]]*/ true,
        enable_banner_autoplay: /*[[${theme.config.carousel.enable_banner_autoplay}]]*/ true,
        banner_delay: /*[[${theme.config.carousel.banner_delay}]]*/ 3500,
        enable_banner_handle: /*[[${theme.config.carousel.enable_banner_handle}]]*/ true,
        enable_banner_switch_button: /*[[${theme.config.carousel.enable_banner_switch_button}]]*/ true,
        enable_banner_pagination: /*[[${theme.config.carousel.enable_banner_pagination}]]*/ true,
        link_behavior: /*[[${theme.config.carousel.link_behavior}]]*/ 'default',

        // 博主信息
        enable_weather: /*[[${theme.config.blogger.enable_weather}]]*/ false,
        weather_key: /*[[${theme.config.blogger.weather_key}]]*/ '',

        // 侧边栏
        enable_music_player: /*[[${theme.config.aside.enable_music_player}]]*/ false,
        enable_tag_cloud: /*[[${theme.config.aside.enable_tag_cloud}]]*/ 'false',
        tag_cloud_type: /*[[${theme.config.aside.tag_cloud_type}]]*/ '3d',

        // 首页
        enable_index_list_effect: /*[[${theme.config.home.enable_index_list_effect}]]*/ true,
        index_list_effect_class: /*[[${theme.config.home.index_list_effect_class}]]*/ 'fadeInUp',
        enable_index_list_ajax: /*[[${theme.config.home.enable_index_list_ajax}]]*/ false,
        post_index_page_size: /*[[${theme.config.home.enable_index_list_ajax}]]*/ false,

        // 文章页
        enable_progress_bar: /*[[${theme.config.post.enable_progress_bar}]]*/ true,
        enable_toc: /*[[${theme.config.post.enable_toc}]]*/ true,
        toc_depth: /*[[${theme.config.post.toc_depth}]]*/ 0,
        enable_comment: /*[[${theme.config.post.enable_comment}]]*/ true,
        enable_like: /*[[${theme.config.post.enable_like}]]*/ true,
        enable_share: /*[[${theme.config.post.enable_share}]]*/ true,
        enable_copy: /*[[${theme.config.post.enable_copy}]]*/ true,
        enable_copy_right_text: /*[[${theme.config.post.enable_copy_right_text}]]*/ true,
        copy_right_text: /*[[${theme.config.post.copy_right_text}]]*/ '',
        enable_share_weixin: /*[[${theme.config.post.enable_share_weixin}]]*/ true,
        enable_share_link: /*[[${theme.config.post.enable_share_link}]]*/ true,

        // 瞬间
        enable_journal_effect: /*[[${theme.config.journals.enable_journal_effect}]]*/ true,
        journal_list_effect_class: /*[[${theme.config.journals.index_list_effect_class}]]*/ 'fadeInUp',
        enable_like_journal: /*[[${theme.config.journals.enable_like_journal}]]*/ true,
        enable_comment_journal: /*[[${theme.config.journals.enable_comment_journal}]]*/ true,
        journal_block_height: /*[[${theme.config.journals.journal_block_height}]]*/ 300,

        // 页脚
        enable_footer: /*[[${theme.config.footer.enable_footer}]]*/ true,
        footer_position: /*[[${theme.config.footer.footer_position}]]*/ 'default',
        check_baidu_collect: /*[[${theme.config.other.check_baidu_collect}]]*/ false,
        enable_birthday: /*[[${theme.config.footer.enable_birthday}]]*/ false,
        birthday: /*[[${theme.config.footer.custom_birthday}]]*/ '',

        // 代码块
        enable_code_title: /*[[${theme.config.code_block.enable_code_title}]]*/ true,
        enable_code_hr: /*[[${theme.config.code_block.enable_code_hr}]]*/ true,
        enable_code_macdot: /*[[${theme.config.code_block.enable_code_macdot}]]*/ true,
        enable_code_copy: /*[[${theme.config.code_block.enable_code_copy}]]*/ true,
        enable_code_newline: /*[[${theme.config.code_block.enable_code_newline}]]*/ false,
        enable_code_expander: /*[[${theme.config.code_block.enable_code_expander}]]*/ false,
        enable_fold_long_code: /*[[${theme.config.code_block.enable_fold_long_code}]]*/ false,
        long_code_height: /*[[${theme.config.code_block.long_code_height}]]*/ '800',
        show_tools_when_hover: /*[[${theme.config.code_block.show_tools_when_hover}]]*/ true,

        // 自定义
        favicon: /*[[${theme.config.custom.favicon}]]*/ '',

        // 其他
        enable_clean_mode: /*[[${theme.config.other.enable_clean_mode}]]*/ false,
        enable_console_theme: /*[[${theme.config.other.enable_console_theme}]]*/ false,
        show_loaded_time: /*[[${theme.config.other.show_loaded_time}]]*/ false
      };
    </script>
  </th:block>
</html>
